<template>
  <div class="searchbar">
    <div @click="$router.push('/search/search')" class="search-btn">
      <van-icon name="search" />搜索商品
    </div>
  </div>
</template>

<script>
  export default {
    name: "searchbar"
  }
</script>

<style scoped>
  .searchbar{
    line-height: 50px;
    background-color: #fff;
    height: 50px;
  }
  .search-btn{
    display: inline-block;
    margin-top: 10px;
    margin-left: 5%;
    border-radius: 5px;
    width: 90%;
    background-color: #f5f5f5;
    height: 30px;
    line-height: 30px;
    text-align: center;
  }
  .chat{
    display: inline-block;
    font-size: 22px;
    box-sizing: border-box;
    line-height: 40px;
    height: 100%;
    margin-left: 20px;
  }
  .chat i{
    top:5px
  }
</style>
